const MODE = {
  MOBILE: 'mobile',
  WEB: 'web',
  WINDOWS: 'windows',
  COCKPIT: 'cockpit'
}
const PRIVILEGE = {
  NO: -1,
  READONLY: 0,
  FULL: 1
}
export default {
  namespaced: true,
  state: {
    MODE,
    PRIVILEGE
  },
  mutations: {
    setComponent(state, payload = {}) {
      state.component = payload
    }
  },
  actions: {
    async init({ dispatch }) {
      await dispatch('getConstant')
    },
    async getConstant({ commit, rootState }) {

    }
  }
}
